//
//  NetWorkError.h
//  CarService
//
//  Created by sixarm on 2018/5/5.
//  Copyright © 2018年 sixarm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppSingleton.h"

@interface NetWorkError : NSObject

SingletonH(Error)

@property (nonatomic, assign) NSInteger  errorCode;

@property (nonatomic, copy)   NSString  *errorDescription;

/** auth 认证 非200 错误 */
- (long)authHTTPCode:(NSURLSessionTask *)task ;

/**  服务器返回code 判断  */
- (int)filterError40Xstring:(id)response ;

/**  响应error 判断  */
- (void)handleRequestError:(NSError *)error ;

@end
